namespace Reportes.Logistica.Reportes
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;

    /// <summary>
    /// Summary description for RptKardexValorizado.
    /// </summary>
    public partial class RptKardexValorizado : Telerik.Reporting.Report
    {
        public RptKardexValorizado()
        {

            InitializeComponent();
        }


        public void AddItems(String ANIO, String MES, String TEXISTENCIA)
        {
            this.textBox32.Value = MES + " " + ANIO;
            this.txtTipoExistencia.Value = TEXISTENCIA;

            //txtTotal.Value += txtCostoTotal.Value;
        }

        //private void txtTotal_ItemDataBound(object sender, EventArgs e)
        //{
        //    string amt = txtCostoTotal.Value  ;
        //    string tax = txtCostoTotal.Value;

        //    txtTotal.Value = (Convert.ToInt32(amt) + Convert.ToInt32(tax)).ToString();
        //}

        public static  decimal ctor = 0;

        public void SETCTOR()
        {
            ctor = 0;
        }

        public static decimal acumularTotal(decimal monto)
        {
            ctor = ctor + monto;
            return monto;
        }

        public static decimal RETORNARVALOR()
        {
            return ctor;
        }

       // private void textBox48_ItemDataBound(object sender, EventArgs e)
       // {
       //     textBox48.Value = (10 + 10).ToString();
       // }

        public static Boolean VISIBLE(int PAGINAINI,int PAGINAFIN)
        {
            if(PAGINAINI != PAGINAFIN)
            {
            return true;
            }
            else
            {
            return false ;
            }
        }

    }
}